package com.zq.it.dao.admin;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import com.zq.it.pojo.Chapter;

public interface ChapterDao {
	
	public void saveChapterEty(Chapter chapter);
	public void saveChapterEtyList(Collection<Chapter> collection);
	public void deleteChapterEtyByID(Integer id);
	public void deleteChapterEtyByObj(Chapter chapter);
	public void deleteAllEty(int [] ids);
	public List findChapterEtyList(Integer id,String name);
	public List findChapterEtyById(Integer id);	
	public void updateChapterEty(Chapter chapter);
	public List findChapterEtyByName(String name);
	public List findChapterAllEty();
	public List findChapterEtyByExmp(Chapter chapter);
    public List findChapterListByHQL(String hql);
    public List findChapterListBySQL(String sql);
    public List findChapterListEtyByFetchMode(String modeStr,String sql);    
  
    //关联查询
    public Chapter findChapterFetchLs(Integer id); 
}
